package fr.umlv.m2.jee.birt.persistence.comment;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "COMMENT")
public class Comment implements Serializable {

    @Id
    @Column(name = "co_id")
    @SequenceGenerator(name="seqId", sequenceName="CO_SEQ")
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="seqId")
    public Long id;

    @Column(name = "co_business_id")
    public String businessId;

    @Column(name = "co_comment")
    public String comment;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getComment() {
        return comment;
    }
}
